home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Grp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  907 b   |  41 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __GRP_H
  7. #define __GRP_H 1
  8.  
  9. #if __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. #include <sys/types.h>
  14. struct group
  15.         {
  16.         char *gr_name;
  17.         char *gr_passwd;
  18.         gid_t gr_gid;
  19.         char **gr_mem;
  20.         };
  21. #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
  22. #include <stdio.h>
  23. #endif
  24. #ifndef __STDC__
  25. #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
  26. void __CLIB endgrent(void);
  27. struct group * __CLIB fgetgrent(FILE *);
  28. struct group * __CLIB getgrent(void);
  29. void __CLIB setgrent(void);
  30. int __CLIB initgroups(const char *,gid_t);
  31. #endif /* !_POSIX_SOURCE && !_XOPEN_SOURCE */
  32. extern struct group * __CLIB getgrgid(gid_t);
  33. extern struct group * __CLIB getgrnam(const char *);
  34. #endif  /* __STDC__ */
  35.  
  36. #if __cplusplus
  37. };
  38. #endif
  39.  
  40. #endif
  41.